package com.qingxuan.mybatis.plus.study.demo1.mapper;

import com.qingxuan.mybatis.plus.study.demo1.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author yy.lei
 * @since 2021-10-16
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

	/**
	 * 查询部门下的用户
	 * @param deptId
	 *      部门id
	 * @return
	 * 部门用户
	 */
	List<SysUser> queryDeptUsersByDeptId(@Param("deptId") long deptId);

}
